package com.whuan.main;

import java.sql.SQLOutput;

public class SwitchTest {
    static int aa = 6;
    public static void main(String[] args){
        int[] aa = {1,5};
        SwitchTest aaa = new SwitchTest();
        aaa.change(aa);
        for(int inta:aa){
            System.out.println(inta);
        }
        aaa.hashCode();
    }
    public void change(int[] a){
        if (a.length == 2){
            a[0] = a[0] + a[1];
            a[1] = a[0] - a[1];
            a[0] = a[0] - a[1];
        }
    }

}
